package mf;

import java.awt.*;

/**
 * Created by Adiljan on 2016-10-30.
 */
public class Block {
	private String colorName;
	private Color color;
	private int number;

	public Block(String colorName, int number) {
		this(number, colorName, Color.getColor(colorName));
	}

	public Block(int number, String colorName, Color color) {
		this.colorName = colorName;
		this.color = color;
		this.number = number;
	}

	public String getColorName() {
		return colorName;
	}

	public void setColorName(String colorName) {
		this.colorName = colorName;
	}

	public Color getColor() {
		return color;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}
}
